import httpInstance from "../http";

// 账号登录请求
export const accountLoginRequest = (account) => {
    return httpInstance.post('/account_login', account);
}

// 获取验证码
export const getCodeRequest = () => {
    setTimeout(() => {
        return httpInstance.get('/getCode');
    }, 2000);
}   

// 获取登录角色的详细信息
export const getUserInfoById = (id) => {
    return httpInstance.get(`/user`, {
        data: { id }
    });
}